/*
 *  FileMgr.h
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */


#import <Foundation/Foundation.h>



@interface FileMgr: NSObject {
}

+(NSString *)GetFilePath:(NSString*)fileName;
+(bool)CreateFile:(NSString*)fileName;
+(bool)DeleteFile:(NSString*)fileName;
+(NSFileHandle*)OpenFile:(NSString*)fileName;
+(void)CloseFile:(NSFileHandle*)hFile;
+(int)WriteFile:(NSFileHandle*)hFile:(void*)data:(int)offset:(int)len;
+(int)WriteFileEx:(NSString*)fileName:(void*)data:(int)offset:(int)len;

+(int)WriteFileFullPath :(NSString*)fileName :(int)mode :(void*)data:(int)offset:(int)len;

+(int)ReadFile:(NSFileHandle*)hFile:(void*)data:(int)offset:(int)len;
+(int)ReadFileEx:(NSString*)fileName:(void*)data:(int)offset:(int)len;
+(bool)IsFileExist:(NSString*)fileName;
+(int)GetFileSize:(NSString*)fileName;

+(BOOL)CreateDirectory:(NSString*)fileName;

+ (NSString*) GetAbsBundlePath:(NSString*) filePath;
+ (BOOL)CopySourceFile:(NSString *)sourceFile DestFile:(NSString *)destFile;

@end
 

